package com.xunce.xcworkservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @ClassName:  RoleMenu  
 * @Author:     yanlong.guo      
 * @Date:       2023/12/28 16:24   
 */

@Schema(description="角色和菜单的关联表")
@Data
@TableName(value = "role_menu")
public class RoleMenu {
    /**
     * 主键ID，唯一标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description="主键ID，唯一标识")
    private Integer id;

    /**
     * roles表中的id
     */
    @TableField(value = "role_id")
    @Schema(description="roles表中的id")
    private Integer roleId;

    /**
     * menus表中的id
     */
    @TableField(value = "menu_id")
    @Schema(description="menus表中的id")
    private Integer menuId;
}